<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>博客来了</title>
<style type="text/css">
body {
	text-align: center;
}
a {
    text-decoration: none;
	color: black;
}
.aaa {
	position: relative;
	left: 500px;
	top: -50px;
}
a:hover {
    color: red;
}
.bkflyd{
    position: relative;
	left: -500px;
}
div{
    border: solid gray 1px;
    width: 800px;
    height: 370px;
    position: relative;
	left: 150px;
}
</style>
</head>
<body>
	<h1>博客来了</h1>
	    <%  
        //String strURL = request.getParameter("first");  
        String strRequestj = (String)request.getSession().getAttribute("passwordt");  
        String strSessionj = (String)request.getSession().getAttribute("namet");  
        System.out.println(strRequestj);
        System.out.println(strSessionj);
        if(strSessionj == null){
        	response.sendRedirect("/mainpage.jsp");
		}
        %> 
	<a href="http://localhost:8089/user_personalpage.jsp" class="aaa"><%=strSessionj%></a>
	<span class="bkflyd"><a href="http://localhost:8089/blog_typelist.jsp">博客分类</a></span>
	<br><br><br>
	<div>
	<br><span>博客推荐</span><br><br>
	<p><a onclick="chuanboke1()">你要记住，能得到的东西，才是最好的。</a></p><br>
	<p><a onclick="chuanboke2()">很多人问，为什么看历史，很多人回答，以史为鉴。</a></p><br>
	<p><a onclick="chuanboke3()">在大学里，特别是一般的大学，要适当跳出自己的圈子。随波逐流只会让你变得跟大多数人一样普通。</a></p><br>
	</div>
	<form method="post" name="pasormsz" action="blogpage.jsp">
		<input type='hidden' name="csflid">
		<input type='hidden' name="csflids">
	</form>
	<script type='text/javascript'>
	function setinputtzz(csflid,csflids){
		document.pasormsz.csflid.value = csflid;
		document.pasormsz.csflids.value = csflids;
	    document.pasormsz.submit();
	}
	function chuanboke1(){
		setinputtzz("14","mdzz1");
	}
	function chuanboke2(){
		setinputtzz("15","mdzz2");
	}
	function chuanboke3(){
		setinputtzz("16","mdzz3");
	}
	</script>
</body>
</html>